<?php

/**
 * params.php
 *
 * Holds frontend specific application parameters.
 * @author Tuong Tran <tuong.tran@outlook.com>
 */
$paramsCommonFile = ROOT . DIRECTORY_SEPARATOR. 'common' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'params.php';

$paramsCommonArray = file_exists($paramsCommonFile) ? require($paramsCommonFile) : array();

return CMap::mergeArray(
    $paramsCommonArray,
     // merge frontend specific with resulting env-local merge *override by local
    array(
        'url.rules' => array(
            '' => 'site/index',
            'error'=>'site/error',
            'contact' => 'site/contact',
            'about' => 'site/about',
            'what-is-mint'=>'site/mint',
            'how-it-works'=>'site/how',
            'certification' => 'site/certification',
            'education' => 'site/education',
            'login' => 'site/login',
            'register'=>'site/register',
            'faq/<slug:[\w-]+>' => 'site/faq',

            /* for REST please @see http://www.yiiframework.com/wiki/175/how-to-create-a-rest-api/ */
            /* other @see http://www.yiiframework.com/doc/guide/1.1/en/topics.url */
            '<controller:\w+>/<id:\d+>' => '<controller>/view',
             '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
             '<controller:\w+>/<action:\w+>' => '<controller>/<action>',
         ),
         // add here all frontend-specific parameters
        'pageSize' => 10
    )
);